//-----------------------------------------------------------------------------
//	File: rtc.c
//	Author: hsia
//		Using HSE, 8M/128=62.5kHz, T=16us
//-----------------------------------------------------------------------------

#ifndef __RTC_H__
#define	__RTC_H__

#include "stm32f10x.h"

//-----------------------------------------------------------------------------
//	configure rtc module
//-----------------------------------------------------------------------------
void configure_rtc_module(void);

//-----------------------------------------------------------------------------
//	rtc_get_time - get the minute, second, msecond, usecond from the rtc
//-----------------------------------------------------------------------------
uint32_t rtc_time_get(void);

#endif
